package cn.com.ntr.jhclient;

import cn.com.ntr.jhclient.util.CommonUtil;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class InterviewDetailActivity extends Activity {
			private Button btnBack;
			private static String content;
			private TextView tvContent;
			public static void setContent(String _content){
				content=_content;
			}
			@Override
			protected void onCreate(Bundle savedInstanceState) {
				// TODO Auto-generated method stub
				super.onCreate(savedInstanceState);
				setContentView(R.layout.activity_interview_detail);
				init();
				registerListener();
				tvContent.setText(CommonUtil.filterHtml(content));
			}
			private void init() {
				btnBack = (Button) findViewById(R.id.btn_back);
				tvContent=(TextView)findViewById(R.id.tv_content);
			}

			private void registerListener() {
				btnBack.setOnClickListener(clickListener);
			}

			private OnClickListener clickListener = new OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					switch (v.getId()) {
					case R.id.btn_back:
						finish();
						break;
					default:
						break;
					}
				}
			};
}
